/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconRefresh: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'rem'} height={size + 'rem'} style={style} {...rest}>
      <path
        d="M192 512c0-176.3328 144.9984-320 324.8128-320 106.2912 0 200.6016 50.2784 259.84 128h-104.6528V384H896V160h-64v127.1808A389.7856 389.7856 0 0 0 516.8128 128C302.4384 128 128 299.52 128 512s174.4384 384 388.8128 384c183.552 0 337.7152-125.7472 378.368-295.3216l-62.3104-14.848c-33.7408 140.8512-162.304 246.1696-316.16 246.1696-179.712 0-324.7104-143.6672-324.7104-320z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconRefresh.defaultProps = {
  size: 22,
};

export default IconRefresh;
